//
//  TDOrderListCell.m
//  TBRentClient
//
//  Created by tonbright on 2018/6/14.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "TDOrderListCell.h"
#import <UIImageView+WebCache.h>
@implementation TDOrderListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _view_bg.layer.borderColor = [UIColor lightGrayColor].CGColor;
    _view_bg.layer.borderWidth = 1;
    _view_bg.layer.cornerRadius = 7;
    _view_bg.layer.masksToBounds = YES;
    NSURL *url = [NSURL URLWithString:@"https://modao.cc/uploads3/images/2103/21034483/raw_1528084321.jpeg"];
    [_imv_car sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"car"]];
}

- (void)setListModel:(TDOrderListModel *)listModel {
    _listModel = listModel;
    _lbe_brandnm.text = [NSString stringWithFormat:@"%@%@",listModel.brandnm,listModel.seriesnm];
    _lbe_brandnmDes.text = [NSString stringWithFormat:@"%@%@试驾",listModel.brandnm,listModel.seriesnm];
    _lbe_statusnm.text = listModel.statusnm;
    _lbe_storename.text = listModel.storename;
    _lbe_storeaddress.text = listModel.storeaddress;
    _lbe_pickTime.text = [NSString stringWithFormat:@"%@ - %@",listModel.planpickuptime,listModel.planreturntime];
    NSString *imgStr = [NSString stringWithFormat:@"http://121.40.92.131/deepdriving/%@",listModel.carimageurl];
    [_imv_car sd_setImageWithURL:[NSURL URLWithString:imgStr] placeholderImage:[UIImage imageNamed:@"car"]];
}

@end
